package com.mengxun.myweb.controller.account;

import com.alibaba.fastjson.JSONObject;
import com.mengxun.myweb.util.ShiroUtils;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.system.domain.SysUser;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * 基本信息
 *
 * @author xun
 */
@Controller
public class MemberCenterController extends BaseController {

    @RequestMapping(value = {"/user/index.html", "/user"})
    public String Index(HttpServletRequest request) {
        try {
            SysUser user = ShiroUtils.getSysUser();

            logger.info(user.toString());

        } catch (Exception e) {
            logger.error(JSONObject.toJSONString(e));
        }

        return "account/member_center_index";
    }

}
